<h4>Categories</h4>

<%= render 'form' %>
<br />
<br />
<table class="table table-striped table-bordered">
  <tr>
    <th>Name</th>
    
    <th></th>
  </tr>

<% @categories.each do |category| %>
  <tr>
    <td><%= link_to category.name, category_path(category) %> </td>    
    <td><%= link_to 'Edit', edit_category_path(category) %>
    <%= link_to 'Destroy', category, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />


